﻿<UserControl x:Class="Citrix.XaAdminMobile.Resources.LoadingStatus"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:res="clr-namespace:Citrix.XaAdminMobile.Resources"
             xmlns:prop="clr-namespace:Citrix.XaAdminMobile.Properties"
             mc:Ignorable="d" 
             d:DesignHeight="38" d:DesignWidth="273"
             HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"
             Background="White"
             Visibility="{Binding LoadingVisibility}">

  <Grid>
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto"/>
      <RowDefinition Height="Auto"/>
    </Grid.RowDefinitions>

    <Rectangle Style="{DynamicResource RectangleSeparatorStyle}" Fill="DarkGray"/>

    <Grid Grid.Row="1" Margin="0,5" HorizontalAlignment="Center">
      <Grid.ColumnDefinitions>
        <ColumnDefinition Width="Auto"/>
        <ColumnDefinition Width="10"/>
        <ColumnDefinition Width="Auto"/>
      </Grid.ColumnDefinitions>

      <res:SmallLoadingAnimation VerticalAlignment="Center"/>
      
      <TextBlock
        VerticalAlignment="Center"
        Grid.Column="2" Text="{x:Static prop:Resources.LoadingLabel}" Foreground="DarkGray"
        FontSize="16"/>
    </Grid>
  </Grid>
</UserControl>
